﻿using hao_Common.Dapper.Repository;
using System;

namespace hao_Model
{
    /// <summary>
    /// 商品图片实体，存储商品图片的相关信息
    /// </summary>
    public class ProductImage : ISoftDelete
    {
        /// <summary>
        /// 图片唯一标识
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 所属商品的唯一标识
        /// </summary>
        public Guid ProductId { get; set; }

        /// <summary>
        /// 图片访问的URL地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 软删除标记
        /// </summary>
        public bool IsDeleted { get; set; } // 软删除标记
    }
}